package com.slj.comm.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author CC
 * @version 1.0
 * @description: TODO
 * @date 2025/9/16 11:28
 */
public class DateUtil {
    //将字符串转成日期
    public static Date parseDate(String dateStr) {
        try {
            return new SimpleDateFormat("yyyy-MM-dd").parse(dateStr);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}
